package zut.cs.liziflower.service;

import zut.cs.liziflower.entity.Comments;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xuwenke
 * @since 2022-05-19
 */
public interface ICommentsService extends IService<Comments> {

    //获取某用户的所有评论
    List<Comments> getCommentByUserIdAndFlowerId(Integer userid, Integer flowerid);

    List<Comments> getComment(Integer flowerid);//获取一种花的评论

    int addRemark(Integer userid, Integer flowerid, String remark);
}
